
var pgpromise = require( 'pg-promise' )()

const pgConfig = {
    user: 'postgres',
    password: '123456',
    database: 'postgres',                                                                                   
    host: '127.0.0.1',
    port: '5432',
    poolSize: 5,
}   

function main() { 
    var db = pgpromise( pgConfig );
    var all = db.query( "SELECT * from protectors " ) ;
    console.log( all );
}()

